package cn.miao.middle.cloud.core.model;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 服务API实体类
 * 
 * @author kongyufei
 *
 */
@Data
@ApiModel(value = "服务API实体类", description = "服务API实体类对象")
@TableName("sys_service")
public class SysService implements Serializable {

	private static final long serialVersionUID = 749360940290141180L;
	
	
	@ApiModelProperty(value = "主键ID")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long id;
	
	@ApiModelProperty(value = "父ID")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long parentId;
	
	@ApiModelProperty(value = "名称")
	private String name;
	
	@ApiModelProperty(value = "路径")
	private String path;
	
	@ApiModelProperty(value = "排序")
	private Integer sort;
	
	@ApiModelProperty(value = "创建时间")
	private Date createTime;
	
	@ApiModelProperty(value = "更新时间")
	private Date updateTime;
	
	@ApiModelProperty(value = "是否是服务")
	private Integer isService;

}